<?php


/**
* Capa de abstracción para la base de datos. 
*
* @link http://adodb.sourceforge.net/ ADOdb
*/
require_once('adodb/adodb.inc.php');
/**
* @ignore
*/
require_once('adodb/adodb-exceptions.inc.php');

$conn = null;

try{
    $conn = ADONewConnection("mysql");
    $conn->debug = false;
    $conn->Connect("localhost", "root", "", "ijudge");

    /*if(!$conn) {

	    die( '{ "success" : false, "reason" : "NO_DB" }' );	
    }*/

} catch (Exception $e) {

	die( '{ "success" : false, "reason" : "NO_DB" }' );	
	

}
?>
